package com.declum.archon.chunkserver.server;

import com.declum.archon.chunkserver.manager.IChunkManager;
import com.declum.archon.chunkserver.server.ds.PingInformation;

/**
 * This class is the local implementation of the {@link IChunkServer} which can
 * be used local to Chunk Server
 * 
 * @author star
 * 
 */
public class ChunkServer implements IChunkServer {

	private IChunkManager	chunkmanager;
	private String			clusterid;
	private String			name;

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public PingInformation ping() {
		PingInformation pingDS = new PingInformation();
		return pingDS;
	}

	@Override
	public void backup() {

	}

	@Override
	public void checkChunks(int mode) {

	}

	@Override
	public IChunkManager getChunkManager() {
		return this.chunkmanager;
	}

	public void setChunkManager(IChunkManager chunkmanager) {
		this.chunkmanager = chunkmanager;
	}

	@Override
	public String getClusterID() {
		return this.clusterid;
	}

	public void setClusterID(String clusterid) {
		this.clusterid = clusterid;
	}

	@Override
	public String getName() {
		return this.name;
	}
}
